package com.feature.learn.concurrent.Semaphore.sampe1;

/**
 *
 * @author 01390942
 * @Description
 * @create 2021/7/5
 * @since 1.0.0
 */
public class Semaphore1Test {
    public static void main(String[] args) {
        SemaphoreService service = new SemaphoreService(3);

        for (int i = 0; i < 10; i++) {
            ServiceThread serviceThread = new ServiceThread("serviceThread" + i, service);
            serviceThread.start();
        }
    }
}